package dt.inlee.domain;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 
 * @类名： DcUser
 * @功能说明：点餐系统商家
 * @作者： 研发部-鄢松涛
 * @创建日期： 2014年9月19日下午3:31:41
 * @版本：1.0
 */
@Entity
@Table(name = "DC_BUSINESS")
public class DcBusiness {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    private String name;//商家名称
    
    private String phone;//商家电话
    
    @OneToMany(mappedBy="business")
    private List<DcFood> foods;//商家菜单

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public List<DcFood> getFoods() {
        return foods;
    }

    public void setFoods(List<DcFood> foods) {
        this.foods = foods;
    }

}
